﻿namespace Zeus.Biz.MySql.EF.Model
{
    public class Order
    {
        public long Id { get; set; }
        public string OrderNumber { get; set; }
        public double Price { get; set; }
        public long CustomerId { get; set; }

        public Customer Customer { get; set; }

        public override string ToString()
        {
            string format = "Id: {0}\nOrder Number: {1}\nPrice: {2}\nCustomer Id: {3}\n";

            return string.Format(format, Id, OrderNumber, Price, CustomerId);
        }
    }
}
